package com.malljelly.study.feign;

import com.alibaba.fastjson.JSONObject;
import com.malljelly.study.degraded.DegradedUnionpayFeignClient;
import com.malljelly.study.vo.unionpay.service.UnionPaymentInfoRequestVo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by 骑着蜗牛去旅行 on 2018/8/15.
 */
@FeignClient(qualifier = "accountFeignClient",name = "service-unionpay-payment",fallback = DegradedUnionpayFeignClient.class)
public interface UnionpayFeignClient {

    @PostMapping("soa/unionPayService/addPayInfoToken")
    JSONObject addPayInfoToken(@RequestBody UnionPaymentInfoRequestVo paymentInfo);
}
